package com.coffeeloversupportlibrary.coffeelover.networktest.entity;

import java.util.List;

/**
 * @author puyv
 * @createTime 2021/11/5 18:48
 * @projectName CoffeeLoverSupportLibrary
 * @className bean.java
 * @description TODO
 * 聚合数据接口的测试
 */

public class Beans {
    private String reason;
    private ResultDTO result;
    private Integer errorCode;
    public static class ResultDTO {
        private String stat;
        private List<DataDTO> data;
        private String page;
        private String pageSize;
        public static class DataDTO {
            private String uniquekey;
            private String title;
            private String date;
            private String category;
            private String authorName;
            private String url;
            private String thumbnailPicS;
            private String thumbnailPicS02;
            private String thumbnailPicS03;
            private String ftttdddddisContent;

            public String toString(){
                return this.authorName+this.category+this.date+this.url;
            }
        }
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getInnerInfo(){
        return this.result.data.get(0).toString();
    }
}
